<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page  import="mybean.data.*"%>
<jsp:useBean id="loginBean" class="mybean.data.login" scope="session"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人信息</title>
	<link rel="stylesheet" type="text/css" href="css/index-2.css">
	<link rel="stylesheet" type="text/css" href="css/index-1.css">
	<link rel="stylesheet" type="text/css" href="css/reset.css">
	<link rel="stylesheet" type="text/css" href="css/common.css">
</head>
<body>
	<%@ include file="head.txt" %>
	<%	loginBean = (login)session.getAttribute("loginBean");
		if(loginBean==null){
			out.println("<script language = javascript>alert('请重新登录!');");
			out.println("location.href='index.jsp'</script>");
			return;
		}
		else{
			boolean b=loginBean.getLogname()==null || loginBean.getLogname().length()==0;
			if(b){
				out.println("<script language = javascript>alert('请重新登录!');");
				out.println("location.href='index.jsp'</script>");
				return;
			}
		}		%>
	<center class="Admin-content">      
    <form  action ="changeInfoServlet" method="post"> 
    <table>
    	<tr><td height=40px>登录账号：
    	 	<input type="text" readonly="readonly" value="&nbsp;${loginBean.getLogname()}" style="height:25px"> </td></tr>
        <tr><td height=40px>真实姓名：
    	 	<input type="text" readonly="readonly" value="&nbsp;${loginBean.getRealname()}" style="height:25px"> </td></tr>
        <tr><td height=40px>手机号码：
        	<input type="text" value="${loginBean.getPhone()}"  name= "phone" style="height:25px">    </td></tr>
        <tr><td height=40px>身份证号：
        	<input type="text" readonly="readonly" value="${loginBean.getID()}" style="height:25px"></td></tr>
        <tr><td height=40px>账户余额：
        <input type="text"  value="${loginBean.getmoney()}" name="money" style="height:25px">  </td></tr>
       <tr><td height=40px>信用分：&nbsp;&nbsp;&nbsp; 
       		<input type="text" readonly="readonly" value="&nbsp;${loginBean.getcredict()}" style="height:25px"></td></tr>
       <tr><td height=40px>用户押金：
        <input type="text"  value="${loginBean.getdeposit()}" name="deposit" style="height:25px">  </td></tr>
         <tr><td><br><center> <button type="submit" class="submit">更新</button>&nbsp;&nbsp;
			<a href="changePassword.jsp" style="text-decoration:none;color: blue">修改密码</a>&nbsp;&nbsp;
			<div class="tooltip" style="color: #004b97">提示
  				<span class="tooltiptext">只能修改密码，手机号码，余额和押金</span>
			</div>
		</center></td></tr>
    </table>   
	</form> 
</center>
</body>
</html>